package org.example.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.example.system.entity.Payment;

/**
 * 缴费服务层
 */
public interface PaymentService {
    /**
     * 添加缴费
     * @param payment
     * @return
     */
    int add(Payment payment);

    /**
     * 按条件分页查询
     * @param payment
     * @return
     */
    IPage<Payment> selectPage(Payment payment);

    /**
     * 修改
     * @param payment
     * @return
     */
    int update(Payment payment);

    /**
     * 根据id获取缴费信息
     * @param id
     * @return
     */
    Payment getOne(Long id);
}
